package com.weixing.mall.provider.model.dto.sys;

import com.weixing.mall.base.enums.IsEnableEnum;
import com.weixing.mall.provider.model.enums.sys.DataGroupEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author wx
 * @Date 2019/7/30 11:12
 * @Version 1.0
 */
@Data
@ApiModel(value = "角色")
public class SysRoleDto {
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty("角色名")
    @NotNull(message = "角色名不能为空")
    private String roleName;

    @ApiModelProperty("角色编码")
    @NotNull(message = "角色编码不能为空")
    private String roleCode;

    @ApiModelProperty("可用是否")
    @NotNull(message = "可用是否不能为空")
    private IsEnableEnum isEnable;

    @ApiModelProperty("数据组")
    @NotNull(message = "数据组不能为空")
    private DataGroupEnum dataGroup;

    @ApiModelProperty(value = "系统区分")
    private Integer sysFlag;


    @ApiModelProperty("描述")
    @NotNull(message = "描述不能为空")
    private String desp;

    private Long[] menus;
}
